package com.ktgj.other.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.other.mapper.RcOrderRefundMapper;
import com.ktgj.other.domain.RcOrderRefund;
import com.ktgj.other.service.IRcOrderRefundService;

/**
 * 专车订单退款Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-27
 */
@Service
public class RcOrderRefundServiceImpl implements IRcOrderRefundService 
{
    @Autowired
    private RcOrderRefundMapper rcOrderRefundMapper;

    /**
     * 查询专车订单退款
     * 
     * @param rcorderrefund 专车订单退款ID
     * @return 专车订单退款
     */
    @Override
    public RcOrderRefund selectRcOrderRefundById(Long rcorderrefund)
    {
        return rcOrderRefundMapper.selectRcOrderRefundById(rcorderrefund);
    }

    /**
     * 查询专车订单退款列表
     * 
     * @param rcOrderRefund 专车订单退款
     * @return 专车订单退款
     */
    @Override
    public List<RcOrderRefund> selectRcOrderRefundList(RcOrderRefund rcOrderRefund)
    {
        return rcOrderRefundMapper.selectRcOrderRefundList(rcOrderRefund);
    }

    /**
     * 新增专车订单退款
     * 
     * @param rcOrderRefund 专车订单退款
     * @return 结果
     */
    @Override
    public int insertRcOrderRefund(RcOrderRefund rcOrderRefund)
    {
        return rcOrderRefundMapper.insertRcOrderRefund(rcOrderRefund);
    }

    /**
     * 修改专车订单退款
     * 
     * @param rcOrderRefund 专车订单退款
     * @return 结果
     */
    @Override
    public int updateRcOrderRefund(RcOrderRefund rcOrderRefund)
    {
        return rcOrderRefundMapper.updateRcOrderRefund(rcOrderRefund);
    }

    /**
     * 批量删除专车订单退款
     * 
     * @param rcorderrefunds 需要删除的专车订单退款ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderRefundByIds(Long[] rcorderrefunds)
    {
        return rcOrderRefundMapper.deleteRcOrderRefundByIds(rcorderrefunds);
    }

    /**
     * 删除专车订单退款信息
     * 
     * @param rcorderrefund 专车订单退款ID
     * @return 结果
     */
    @Override
    public int deleteRcOrderRefundById(Long rcorderrefund)
    {
        return rcOrderRefundMapper.deleteRcOrderRefundById(rcorderrefund);
    }
}
